<?php require_once('../Connections/elevate954.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_elevate954, $elevate954);
$query_video_page = "SELECT * FROM WORKOUTS";
$video_page = mysql_query($query_video_page, $elevate954) or die(mysql_error());
$row_video_page = mysql_fetch_assoc($video_page);
$totalRows_video_page = mysql_num_rows($video_page);$colname_video_page = "-1";
if (isset($_GET['id'])) {
  $colname_video_page = $_GET['id'];
}
mysql_select_db($database_elevate954, $elevate954);
$query_video_page = sprintf("SELECT * FROM WORKOUTS WHERE id = %s", GetSQLValueString($colname_video_page, "int"));
$video_page = mysql_query($query_video_page, $elevate954) or die(mysql_error());
$row_video_page = mysql_fetch_assoc($video_page);
$totalRows_video_page = mysql_num_rows($video_page);
?>
<!doctype html>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css"/>

<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN THEME STYLES -->
<link href="assets/css/style-conquer.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/style.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/plugins.css" rel="stylesheet" type="text/css"/>

<link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/pages/portfolio.css" rel="stylesheet" type="text/css"/>
 <link href="../video-js/video-js.css" rel="stylesheet" type="text/css">

 <link href="video.css" rel="stylesheet" type="text/css">
 <style type="text/css">
 body {
	background-color: #FFFFFF;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

 </style>

  <!-- video.js must be in the <head> for older IEs to work. -->
  <script src="../video-js/video.js"></script>

  <!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
  <script>
    _V_.options.flash.swf = "video-js.swf";
  </script>


</head>

<body><br>
<style>
@media only screen and (max-width: 380px){
										#example_video_1 { height:120px !important; }
									}
</style>
<div class="video_box" id="video_box">
  <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="100%" height="380"
      poster="../image_uploads/<?php echo $row_video_page['THUMB']; ?>"
      data-setup="{}">
    <source src="../image_uploads/<?php echo $row_video_page['IMAGE']; ?>" type='video/mp4' />
    <source src="../image_uploads/<?php echo $row_video_page['IMAGE']; ?>" type='video/webm' />
    <source src="../image_uploads/<?php echo $row_video_page['IMAGE']; ?>" type='video/ogg' />
    <track kind="captions" src="captions.vtt" srclang="en" label="English" />
  </video>
 <h1 class="page-title">
					<br>
	WORKOUTS INSTRUCTIONS - <?php echo $row_video_page['TITLE']; ?>
  </h1>
  <?php echo $row_video_page['TEXT']; ?><br>
</div>

</body>
<script src="assets/plugins/respond.min.js"></script>
<script src="assets/plugins/excanvas.min.js"></script> 
<![endif]-->
<script src="assets/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<!-- IMPORTANT! Load jquery-ui-1.10.3.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
<script src="assets/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="assets/plugins/bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="assets/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="assets/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<script src="assets/scripts/app.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>
<script src="assets/plugins/gmaps/gmaps.js" type="text/javascript"></script>
<script src="assets/scripts/app.js"></script>
<script src="assets/scripts/contact-us.js"></script>
<script>
jQuery(document).ready(function() {    
   App.init();
});
</script>
<script type="text/javascript" src="assets/plugins/jquery-mixitup/jquery.mixitup.min.js"></script>
<script type="text/javascript" src="assets/plugins/fancybox/source/jquery.fancybox.pack.js"></script>
<!-- END PAGE LEVEL PLUGINS -->
<script src="assets/scripts/app.js"></script>
<script src="assets/scripts/portfolio.js"></script>
<script>
jQuery(document).ready(function() {    
   App.init();
   Portfolio.init();
});
</script></html> 
<?php
mysql_free_result($video_page);
?>
